<template>
  <div class="app-container" style="height: 800px">
    <vue-bpmn :flowId="flowId" ></vue-bpmn>
  </div>
</template>

<script>

import VueBpmn from '@/components/VueBpmn'
export default {
  name: 'FlowForm',
  components: {
    VueBpmn
  },
  props: {
    id: {
      type: String
    }
  },
  data() {
    return {
      flowId: ''
    }
  },
  watch: {
    id: {
      handler() {
        this.flowId = this.id
      }
    }
  },
  created() {
    if (this.id) {
      this.flowId = this.id
    }
  },
  methods: {
  }
}
</script>
